package com.ruoyi.project.pro.picture.service.impl;

import com.ruoyi.project.pro.picture.domain.ProPicture;
import com.ruoyi.project.pro.picture.mapper.ProPictureMapper;
import com.ruoyi.project.pro.picture.service.IProPictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: zhizun
 * @author: Mrs.ye
 * @create: 2020-09-19 09:51
 * @description:
 **/
@Service
public class ProPictureServiceImpl implements IProPictureService {
    @Autowired
    private ProPictureMapper proPictureMapper;
    /**
     * 查找所有图片
     * @return 图片对象集合
     * @param managerNameA
     */
    @Override
    public List<ProPicture> selectPicture(String managerNameA) {


        return proPictureMapper.selectPicture();
    }

    @Override
    public int updateStatusById(String pictureId) {
        return proPictureMapper.updateStatusById(pictureId);
    }

    @Override
    public ProPicture selectPictureById(Long pictureId) {
        return proPictureMapper.selectPictureById(pictureId);
    }

    @Override
    public List<ProPicture> selectAllPicture() {
        return proPictureMapper.selectAllPicture();
    }

    @Override
    public int insertPicture(ProPicture proPicture) {
        return proPictureMapper.insertPicture(proPicture);
    }


}
